#define _CRT_SECURE_NO_WARNINGS 1

//#include <stdio.h>
//
//int main()
//{
//	/*int k = 3;
//	char sex[100][10];
//	for (int i = 0; i < k; i++)
//	{
//		scanf("%s", sex[i]);
//		getchar();
//	}*/
//
//	char csinput[1000] = { 0 };
//	gets(csinput);
//	return 0;
//}

#include <stdio.h>
#include <string.h>

int main()
{
	char input[1000000] = { 0 };
	scanf("%s", input);
	int i = 0;
	char out[4] = { 0 };
	int j = 0;
	while (input[i] != '\0')
	{
		if (input[i] == 'R')
		{
			if (out[2] == '\0')
			{
				printf("FFFFFFFK\n");
			}
			else if (strcmp(out, "WWW") == 0)
			{
				printf("EMP\n");
			}
			else if (!(strcmp(out, "QWW") && strcmp(out, "WQW") && strcmp(out, "WWQ")))
			{
				printf("Tornado\n");
			}
			else if (!(strcmp(out, "QQW") && strcmp(out, "WQQ") && strcmp(out, "QWQ")))
			{
				printf("Ghost Walk\n");
			}
			else if (!strcmp(out, "QQQ"))
			{
				printf("Cold Snap\n");
			}
			else if (!(strcmp(out, "WWE") && strcmp(out, "WEW") && strcmp(out, "EWW")))
			{
				printf("Alacrity\n");
			}
			else if (!(strcmp(out, "QWE") && strcmp(out, "QEW") && strcmp(out, "WQE") && strcmp(out, "WEQ") && strcmp(out, "EWQ") && strcmp(out, "EQW")))
			{
				printf("Deafening Blast\n");
			}
			else if (!(strcmp(out, "QQE") && strcmp(out, "QEQ") && strcmp(out, "EQQ")))
			{
				printf("Ice Wall\n");
			}
			else if (!(strcmp(out, "WEE") && strcmp(out, "EWE") && strcmp(out, "EEW")))
			{
				printf("Chaos Meteor\n");
			}
			else if (!(strcmp(out, "EEQ") && strcmp(out, "EQE") && strcmp(out, "QEE")))
			{
				printf("Forge Spirit\n");
			}
			else if (!strcmp(out, "EEE"))
			{
				printf("Sun Strike\n");
			}

		}
		else
		{
			if (j < 3)
			{
				out[j] = input[i];
				j++;
			}
			else
			{
				out[0] = out[1];
				out[1] = out[2];
				out[2] = input[i];
			}

		}
		i++;
	}

	return 0;
}